package com.example.javadesign.factory.simplefactory;

import java.util.Calendar;

/**
 * @author 陳樂
 * @version 1.0.0
 * @ClassName Main.java
 * @Description TODO
 * @createTime 2022年08月12日 23:11:00
 */
public class Main {

    public static void main(String[] args) {
//        ICourse course = new JavaCourse();

//        ICourse course = new CourseFactory().create("java");

//        ICourse course = new CourseFactory().createByReflect("com.example.javadesign.factory.simplefactory.JavaCourse");
        ICourse course = new CourseFactory().createByClass(JavaCourse.class);
        course.record();


    }
}
